package com.example.entity;

public class User {
    private String username;
    private String password;
    private String major;      // 专业班级
    private String address;    // 家庭住址
    private String phone;      // 联系电话
    private String hometown;   // 籍贯

    // 构造函数
    public User() {}

    public User(String username, String password, String major, String address, String phone, String hometown) {
        this.username = username;
        this.password = password;
        this.major = major;
        this.address = address;
        this.phone = phone;
        this.hometown = hometown;
    }

    // Getters and Setters
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getMajor() { return major; }
    public void setMajor(String major) { this.major = major; }

    public String getAddress() { return address; }
    public void setAddress(String address) { this.address = address; }

    public String getPhone() { return phone; }
    public void setPhone(String phone) { this.phone = phone; }

    public String getHometown() { return hometown; }
    public void setHometown(String hometown) { this.hometown = hometown; }
}